package com.smh.a02IOStreamDemo2;

import java.io.FileWriter;
import java.io.IOException;

public class CharSetDemo8 {
    public static void main(String[] args) throws IOException {


        FileWriter fw = new FileWriter("day26-code\\file\\b.txt");
        //他会先装进缓冲区
        //什么时候写入文件
        //装满
        //flush
        //close

        fw.write("1123131313213213");
        fw.flush();//不会关闭通道.
        fw.close();
//        while (true){
//
//        }


    }
}
